2006-06-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
DeleteDC() on DCs acquired with CreateCompatibleDC() (for
bitmaps). According to MSDN, this is the correct thing to do, even
if always using DeleteDC() seems to have worked fine in
practice. (#337491)
+2006-06-09 Tor Lillqvist <tml@novell.com>
+
+ * gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
+ Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
+ DeleteDC() on DCs acquired with CreateCompatibleDC() (for
+ bitmaps). According to MSDN, this is the correct thing to do, even
+ if always using DeleteDC() seems to have worked fine in
+ practice. (#337491)
+
2006-06-08 Matthias Clasen <mclasen@redhat.com>
* tests/testprint.c: Update for api changes.
+2006-06-09 Tor Lillqvist <tml@novell.com>
+
+ * gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
+ Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
+ DeleteDC() on DCs acquired with CreateCompatibleDC() (for
+ bitmaps). According to MSDN, this is the correct thing to do, even
+ if always using DeleteDC() seems to have worked fine in
+ practice. (#337491)
+
2006-06-08 Matthias Clasen <mclasen@redhat.com>
* tests/testprint.c: Update for api changes.
if (impl->hdc)
{
- GDI_CALL (DeleteDC, (impl->hdc));
+ if (GDK_IS_PIXMAP_IMPL_WIN32 (impl))
+ GDI_CALL (DeleteDC, (impl->hdc));
+ else
+ GDI_CALL (ReleaseDC, (impl->handle, impl->hdc));
impl->hdc = NULL;
}
}